package top.zhangjianyong.blog.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import top.zhangjianyong.blog.enums.RoleKeys;

/**
 * 角色权限检查
 *
 * @author zhangjianyong
 * @since 2024/7/29 下午5:18
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Permission {
  RoleKeys[] roles() default {};
}
